package 第1节循环语句;

import java.util.Scanner;

public class WhileDemo {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int num = input.nextInt();
        boolean flag = true;
        int i = 2;
        while (i < num) {
            if (num % i == 0) {
                flag = false;
                break;
            }
            i++;
        }
        if (flag)  {
            System.out.println("是素数");
        } else {
            System.out.println("不是素数");
        }
    }
}
